import { Button, Space } from 'antd';
import { goBack } from '@/utils/util';
import SafeComponent from './safeComponent';
const safeDetail = ({ location }) => {
  const id = location.query.id;
  return (
    <SafeComponent id={id} readOnly={true}>
      <div className="footer-x">
        <Space size={18}>
          <Button type="primary" className="cancel-btn" onClick={goBack}>
            返回
          </Button>
        </Space>
      </div>
    </SafeComponent>
  );
};
export default safeDetail;
